package org.zhadoop.streaming.expression.arithmetic;

import java.io.Serializable;

public interface ICompute extends Serializable{
	
	/**
	 * 加法算术运算
	 * @param left
	 * @param right
	 * @return
	 */
	public Number add(Number left,Number right);
	
	/**
	 * 减法算术运算
	 * @param left
	 * @param right
	 * @return
	 */
	public Number subtract(Number left,Number right);
	
	/**
     * 乘法算术运算
     * 
     */
    public Number multiply(Number left, Number right);
    
    /**
     * 除法算术运算
     * 
     */
    public Number divide(Number left, Number right);
    
    /**
     * 求模算术运算
     * 
     */
    public Number mod(Number left, Number right);
}
